<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- Module.cpp -->
  <title>Module Class | MyModule</title>
</head>
<body>
<li>Module</li>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#">基本用法</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Module Class</h1>
<!-- $$$Module-brief -->
<p>模块1的核心功能类. <a href="#details">More...</a></p>
<!-- @@@Module -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include &lt;Module&gt;</span>
</td></tr></table></div><ul>
<li><a href="module-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="module.html#Module">Module</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="module.html#dtor.Module">~Module</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="module.html#execute">execute</a></b>(int <i>input</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="module.html#getStatus">getStatus</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="module.html#initialize">initialize</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="module.html#reset">reset</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="module.html#setConfig">setConfig</a></b>(const int &amp;<i>config</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$Module-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>Module类提供了模块1的核心功能实现，包括初始化、执行和状态管理。</p>
<a name=""></a>
<h3 id="">基本用法</h3>
<p>使用示例：</p>
<pre class="cpp">Module module;
module<span class="operator">.</span>initialize();
<span class="type">int</span> result <span class="operator">=</span> module<span class="operator">.</span>execute(<span class="number">5</span>);</pre>
</div>
<p><b>See also </b><a href="module.html#initialize">initialize</a>(), <a href="module.html#execute">execute</a>(), and <a href="module.html#getStatus">getStatus</a>().</p>
<!-- @@@Module -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Module[overload1]$$$Module -->
<h3 class="fn" id="Module"><a name="Module"></a>Module::<span class="name">Module</span>()</h3>
<p>构造一个新的Module对象，初始化状态为0。</p>
<!-- @@@Module -->
<!-- $$$~Module[overload1]$$$~Module -->
<h3 class="fn" id="dtor.Module"><a name="dtor.Module"></a>Module::<span class="name">~Module</span>()</h3>
<p>销毁Module对象。</p>
<!-- @@@~Module -->
<!-- $$$execute[overload1]$$$executeint -->
<h3 class="fn" id="execute"><a name="execute"></a><span class="type">int</span> Module::<span class="name">execute</span>(<span class="type">int</span> <i>input</i>)</h3>
<p>执行模块的主要功能。</p>
<!-- @@@execute -->
<!-- $$$getStatus[overload1]$$$getStatus -->
<h3 class="fn" id="getStatus"><a name="getStatus"></a><span class="type">int</span> Module::<span class="name">getStatus</span>() const</h3>
<p>获取当前模块状态。</p>
<!-- @@@getStatus -->
<!-- $$$initialize[overload1]$$$initialize -->
<h3 class="fn" id="initialize"><a name="initialize"></a><span class="type">bool</span> Module::<span class="name">initialize</span>()</h3>
<p>初始化模块。</p>
<p>调用此方法将模块状态设置为1。</p>
<!-- @@@initialize -->
<!-- $$$reset[overload1]$$$reset -->
<h3 class="fn" id="reset"><a name="reset"></a><span class="type">void</span> Module::<span class="name">reset</span>()</h3>
<p>重置模块状态。</p>
<p>将状态重置为0并清空配置。</p>
<!-- @@@reset -->
<!-- $$$setConfig[overload1]$$$setConfigconstint& -->
<h3 class="fn" id="setConfig"><a name="setConfig"></a><span class="type">void</span> Module::<span class="name">setConfig</span>(const <span class="type">int</span> &amp;<i>config</i>)</h3>
<p>设置模块配置参数。</p>
<!-- @@@setConfig -->
</div>
</body>
</html>
